﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WebPortal.Models.ViewModel.UserDetailsModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Edit your contact info
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="StylesContainer" runat="server">
    <link href="../../Content/Profile.css" rel="stylesheet" type="text/css" />
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="ScriptContainer" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <div id="sidebar" >
        <h1>Your Profile</h1>
        <ul class="sidemenu">
            <li><%: Html.ActionLink("Contact Info", "Index", "Profile") %></li>
            <li><%: Html.ActionLink("Edit email or password", "Security", "Profile") %></li>
        </ul>
    </div>

    <div id="main">
        <h1>Please fill your contact information</h1>
        <% Html.BeginForm(); %>
            <fieldset>
                <div class="FirstCol">
                    <label>Name</label>
                    <%: Html.TextBoxFor(m => m.ContactName) %>  
                    <%: Html.ValidationMessageFor(m => m.ContactName) %>                  
                    <label>Postal Code</label>
                    <%: Html.TextBoxFor(m => m.PostalCode) %>
                    <%: Html.ValidationMessageFor(m => m.PostalCode) %>
                    <label>Address</label>
                    <%: Html.TextBoxFor(m => m.Address) %>
                    <%: Html.ValidationMessageFor(m => m.Address) %>
                    <label>City</label>
                    <%: Html.TextBoxFor(m => m.City) %>
                    <%: Html.ValidationMessageFor(m => m.City) %>
                </div>
                <div class="SecondCol">                
                    <label>Country</label>
                    <%: Html.TextBoxFor(m => m.Country) %>
                    <%: Html.ValidationMessageFor(m => m.Country) %>
                    <label>Phone</label>
                    <%: Html.TextBoxFor(m => m.Phone) %>
                    <%: Html.ValidationMessageFor(m => m.Phone) %>
                    <label>Fax</label>
                    <%: Html.TextBoxFor(m => m.Fax) %>
                    <%: Html.ValidationMessageFor(m => m.Fax) %>
                    <input class="Submit" type="submit" value="Save" />
                </div>
            </fieldset>
        <% Html.EndForm(); %>
    </div>

</asp:Content>